# Creates a source pacakge for upload to google code:

# Create list with all source files (all files tracked by hg)

if [ "$1" == "" ]; then
	echo "Usage: create_zip.sh <version number>";
	echo " e.g.  create_zip.sh 1.0.1";
	exit -1;
fi

ZIPFILE="zencat_sqlite_src_$1.zip"

FILES=`hg status --all | grep "^C .*" | grep -v "C \.hg.*" | sed "s/C \(.*\)$/\1/g"`

if [ -f "$ZIPFILE" ]; then
	echo "removing old $ZIPFILE";
	rm "$ZIPFILE";
fi

zip $ZIPFILE $FILES



